# -*- coding: iso-8859-1 -*-
#
#    This is part of Malvinas Argentinas Messenger
#
#    Malvinas Argentinas Messenger is free software; you can redistribute
#    it and/or modify it under the terms of the GNU General Public License
#    as published by the Free Software Foundation; either version 2 of the
#    License, or (at your option) any later version.
#
#    Malvinas Argentinas Messenger is distributed in the hope that it will be
#    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Malvinas Argentinas Messenger; if not, write to the Free
#    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
#    MA  02110-1301  USA

class Tab(object):
	def __init__(self):
		self.nombre = ''
		self.account = ''
		self.ventana = ''

		self.newMsg = 0
		self.typing = 0
		self.waitingJoi = 0

		self.time_last_typing = ''
		self.inputPadText = ''
		self.inputPadPos = 0
		self.multiple = 0

	def set_newMsgFlag(self):
		self.newMsg = 1
	
	def unset_newMsgFlag(self):
		self.newMsg = 0
	
	def set_typingFlag(self):
		self.typing = 1

	def unset_typingFlag(self):
		self.typing = 0

	def set_waitingJoi(self):
		self.waitingJoi = 1
	
	def unset_waitingJoi(self):
		self.waitingJoi = 0
